<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="static/js/font_1693746_l88lqiaavxa.js"></script>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/font_1693746_l88lqiaavxa.css">
  <title>开发助手高效版-网页版极致cms开发助手</title>
</head>
<body>
<div class="tool-container clearfix">
  <div class="menu">
    <span></span>
  </div>
  <div class="tool-nav" style="display: none;">
    <a href="index.html">导航菜单</a>
    <a href="site.html">站点信息</a>
    <a href="index-page.html">指定栏目</a>
    <a href="index-list.html">指定文章列表</a>
    <a href="index-product.html">指定商品列表</a>
    <a href="sort.html">当前栏目</a>
    <a href="banner.html">轮播图</a>
    <a href="article-list.html">文章列表</a>
    <a href="article-details.html">文章详情</a>
    <a href="productlist.html">产品列表</a>
    <a href="product.html">产品详情</a>
    <a href="pics.html">多图遍历</a>
    <a href="fenye.html">分页</a>
    <a href="message.html">表单留言</a>
    <a href="">搜索列表</a>
    <a href="if.html">IF判断</a>
    <a href="en.html">多语言建站</a> 
    <a href="select.html">多条件筛选</a>
    <a href="label.html">全局标签</a>
    <a href="user.html">会员登录注册</a>
    <a href="javascript:;">无刷新点赞</a>
    <a href="link.html">友情链接</a>
    <a href="other.html">其他</a>
  </div>
  <div class="tool-left">
    <div class="english">
      <a href="en.html"><svg class="icon" aria-hidden="true"><use xlink:href="#iconchina"></use></svg>CN <svg class="icon" aria-hidden="true"><use xlink:href="#iconmeiguo"></use></svg>EN</a>
    </div>
    <div class="logo-search container">
      <a href="site.html" class="logo">极致CMS开发助手</a>
      <a href="" class="search">
        <span>请输入关键词</span>
        <span>搜索</span>
      </a>
      <a href="user.html" class="login">
        <span>登录/注册</span>
      </a>
    </div>
    <div class="header">
      <ul class="navbar clearfix">
        <li><a href="index.html">首页</a></li>
        <li><a href="productlist.html">产品列表</a></li>
        <li><a href="product.html">产品详情</a></li>
        <li><a href="article-list.html">文章列表</a></li>
        <li><a href="article-details.html">文章详情</a></li>
        <li><a href="page.html">单页</a></li>
        <li><a href="label.html">全局标签</a></li>
        <li><a href="other.html">其他</a></li>
      </ul>
    </div>
    <div class="banner container">
      <a href="banner.html"><img src="static/picture/banner.png" alt=""></a>
    </div>
    <div class="index-main container">
      <a href="index-page.html">
        <h3>公司简介</h3>
        <p>欢迎您使用极致CMS商业版, 希望我们的建站系统能够让您在使用的时候感到快乐~郑重承诺极致CMS商业版程序无后门，无限制，全开源，不收授权费，长期运营至死方休。</p>
      </a>
    </div>
    <div class="index-main container">
      <a href="index-product.html">
        <h3>产品展示</h3>
        <span>IMG1</span>
        <span>IMG2</span>
        <span>IMG3</span>
        <span>IMG4</span>
        <span>IMG5</span>
      </a>
    </div>
    <div class="index-foot clearfix">
      <a href="javascript:;" class="index-news">
        <h4>公司新闻</h4>
        <ul>
          <li>新闻标题 <span>2020-03-12</span></li>
          <li>新闻标题 <span>2020-03-12</span></li>
          <li>新闻标题 <span>2020-03-12</span></li>
          <li>新闻标题 <span>2020-03-12</span></li>
          <li>新闻标题 <span>2020-03-12</span></li>
        </ul>
      </a>
      <a href="message.html" class="index-form">
        <h4>留言板</h4>
        <div class="form-item">
          <span class="input">请输入您的姓名</span>
        </div>
        <div class="form-item">
          <span class="input">请输入您的电话</span>
        </div>
        <div class="form-item">
          <span class="button">提交</span>
        </div>
      </a>
      <a href="company.html" class="index-contact">
        <h4>联系我们</h4>
        <div class="index-contact-item">
          <p>联系人：HOUJUN</p>
          <p>QQ：11329827</p>
          <p>地址：成都市青羊区</p>
        </div>
      </a>
    </div>
    <div class="index-link container">
      <a href="link.html">
        友情链接：<span>极致CMS</span><span>菜鸟教程</span>
      </a>
    </div>
    <a href="site.html" class="index-footer">
      <p><span>&copy;2020 极致CMS版权所有</span></p>
      <p><span>蜀ICP备2021016482号</span></p>
    </a>
  </div>
<div class="tool-right">
    <div class="tool-code">
      <h2>极致CMS开发助手</h2>
      <div class="tool-code-box" id="tool-code1">

        <div class="code-box code-create">
          <h3>搜索列表标题/关键词/描述</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea id="sort" type="text" name="result" value="" rows="3">
<title>搜索 {$word} 的结果-{$webconf['web_name']}</title>
<meta name="keywords" content="" />
<meta name="description" content="" /></textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>

        <div class="code-box code-case">
          <h3>搜索相关示例</h3>
          <div class="tab-hd">
            <span class="active">单模搜索</span>
            <span>全局搜索</span>
            <span>搜索列表</span>
            <span>搜索分页</span>
          </div>
          <div class="tab-bd">
<div class="textarea-box">
  <textarea name="" id="" rows="8">
<form action="{fun get_domain()}/search" method="GET">
    <input name="molds" type="hidden" value="article" />
<div>
    <input  name="word" type="text" placeholder="输入关键词">
    <button type="submit">单模搜索</button>
</div>
</form></textarea><button onclick="copyTextarea()">COPY</button>
</div>
<div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="9">
<form action="{fun get_domain()}/searchAll" method="GET">
    <input name="molds[]" type="hidden" value="article" />
    <input name="molds[]" type="hidden" value="product" />
    <div>
        <input  name="word" type="text" placeholder="输入关键词">
        <button  type="submit">全局搜索</button>
    </div>
</form></textarea><button onclick="copyTextarea()">COPY</button>
</div>
<div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="6">
{foreach $lists as $v}
  <li><a href= "{$v['url']}">{$v['title']}</a></li>
{/foreach}</textarea><button onclick="copyTextarea()">COPY</button>
</div>
<div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="12">
{if($lists)}
    <li><a  href="{$listpage['home']}">首页</a></li>
    <li><a href="{$listpage['prev']}">上一页</a></li>
{foreach $listpage['list'] as $ss}
   <li><a href="{$ss['url']}" class="{if($ss['num']==$listpage['current_num'])}ona{/if}">{$ss['num']}</a></li>
{/foreach}
    <li><a href="{$listpage['next']}">下一页</a></li>
    <li><a href="{$listpage['last']}">末页</a></li>
{else}
未搜索到任何数据！
{/if}
</textarea><button onclick="copyTextarea()">COPY</button>
</div>
          </div>
          <div class="code-tips">
            <span>Tips</span>搜索列表和分页跟栏目列表分页调用一样<br>
            后台系统设置 - 网站设置 - 搜索配置 - 允许前台搜索的表<br>
            这里设置一定要配置好你允许搜索的模型，否则也无法搜索！！！
          </div>
      </div>
      
        <div class="code-box code-para">
          <h3>常用标签 <span>(点击即复制)</span></h3>
            <button onclick="copyText()"><span class="copy">{$word}</span><span>搜索关键词</span></button>
            <button onclick="copyText()"><span class="copy">{$v['title']}</span><span>文章标题</span></button>
            <button onclick="copyText()"><span class="copy">{$v['title']}</span><span>文章标题</span></button>
            <button onclick="copyText()"><span class="copy">{$v['url']}</span><span>内容链接</span></button>
            <button onclick="copyText()"><span class="copy">{$v['hits']}</span><span>热度/点击量</span></button>
            <button onclick="copyText()"><span class="copy">{$classtypedata[$v['tid']]['classname']}</span><span>所属栏目名</span></button>
            <button onclick="copyText()"><span class="copy">{$classtypedata[$v['tid']]['url']}</span><span>所属栏目url</span></button>
            <button onclick="copyText()"><span class="copy">{$v['description']}</span><span>简介</span></button>
            <button onclick="copyText()"><span class="copy">{$v['litpic']}</span><span>缩略图</span></button>
            <button onclick="copyText()"><span class="copy">{fun date('Y-m-d',$v['addtime'])}</span><span>时间:年-月-日</span></button>
            <button onclick="copyText()"><span class="copy">{$v['xxx']}</span><span>其他字段内容</span></button>
            <div class="code-tips">
                <span>Tips</span>用法和列表一样
            </div>
        </div>
        
        <div class="code-box code-label">
          <h3>全部标签 <span>(点击即复制)</span></h3>
            <button onclick="copyText()"><span class="copy">搜索 {$word} 的结果</span><span>搜索 xxx 的结果</span></button>
            <button onclick="copyText()"><span class="copy">{$v['title']}</span><span>文章标题</span></button>
            <button onclick="copyText()"><span class="copy">{fun newstr($v['title'],50)}</span><span>标题截取25字</span></button>
            <button onclick="copyText()"><span class="copy">{$v['url']}</span><span>内容链接</span></button>
            <button onclick="copyText()"><span class="copy">{$v_key}</span><span>计数器从0开始计</span></button>
            <button onclick="copyText()"><span class="copy">{$n}</span><span>计数器从1开始计</span></button>
            <button onclick="copyText()"><span class="copy">{$v['hits']}</span><span>热度/点击量</span></button>
            <button onclick="copyText()"><span class="copy">{$v['comment_num']}</span><span>评论数</span></button>
            <button onclick="copyText()"><span class="copy">{$v['tid']}</span><span>所属栏目id</span></button>
            <button onclick="copyText()"><span class="copy">{$classtypedata[$v['tid']]['classname']}</span><span>所属栏目名</span></button>
            <button onclick="copyText()"><span class="copy">{$classtypedata[$v['tid']]['url']}</span><span>所属栏目url</span></button>
            <button onclick="copyText()"><span class="copy">{$v['description']}</span><span>简介</span></button>
            <button onclick="copyText()"><span class="copy">{fun newstr($v['description'],40)}</span><span>简介截取20字</span></button>
            <button onclick="copyText()"><span class="copy">{$v['url']}</span><span>链接</span></button>
            <button onclick="copyText()"><span class="copy">{$v['litpic']}</span><span>缩略图</span></button>
            <button onclick="copyText()"><span class="copy">{$v['body']}</span><span>内容</span></button>
            <button onclick="copyText()"><span class="copy">{fun newstr(htmldecode($v['body']),30)}</span><span>内容纯文字</span></button>
            <button onclick="copyText()"><span class="copy">{fun date('Y-m-d',$v['addtime'])}</span><span>时间:年-月-日</span></button>
            <button onclick="copyText()"><span class="copy">{fun date('Y-m-d H:i:s',$v['addtime'])}</span><span>时间:年-月-日 时:分:秒</span></button>
            <button onclick="copyText()"><span class="copy">{fun date('Y/m/d',$v['addtime'])}</span><span>时间:年/月/日</span></button>
            <button onclick="copyText()"><span class="copy">{$v['xxx']}</span><span>其他字段内容</span></button>
            <input type="text" id="input" value="12345" style="opacity: 0;">
                <div class="code-tips">
                    <span>Tips</span>结果用法和列表一样
                </div>
        </div>
        
    </div>
  </div>
</div>
</div>
<script src="static/js/jquery-1.10.2.js"></script>
<script src="static/js/base.js"></script>
</body>
</html>